<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
	<script type="text/javascript">
		
		var str = 'how old are   you|abc';
		var reg = /\b[a-zA-Z]+\b/g;
		console.log(str.match(reg))
	</script>
</html>
